<!--
 * @Author: HeAo
 * @Date: 2021-12-27 08:33:57
 * @LastEditTime: 2021-12-27 08:56:48
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \study\day02\1-浮动布局.html
 * 别乱动！
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      margin: 0;
    }

    .container {
      background-color: #999;
      /* height: 400px; */
    }

    .container::after {
      content: '';
      display: block;
      clear: both;
    }

    .box1 {
      width: 300px;
      height: 300px;
      background-color: aquamarine;
      margin: 10px;
      float: left;
    }

    .box2 {
      width: 300px;
      height: 300px;
      background-color: orange;
      margin: 10px;
      float: right;
    }
  </style>
</head>

<body>
  <div class="container">
    <div class="box1"></div>
    <div class="box2"></div>
  </div>
</body>

</html>